\hypertarget{class_q_qt_serial_port}{}\section{Q\+Qt\+Serial\+Port Class Reference}
\label{class_q_qt_serial_port}\index{Q\+Qt\+Serial\+Port@{Q\+Qt\+Serial\+Port}}
Inheritance diagram for Q\+Qt\+Serial\+Port\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_q_qt_serial_port}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_serial_port_a17e8f588637d74cd7b24b4ae7b17c5dd}\label{class_q_qt_serial_port_a17e8f588637d74cd7b24b4ae7b17c5dd}} 
{\bfseries Q\+Qt\+Serial\+Port} (Q\+Object $\ast$parent=0)
\item 
\mbox{\Hypertarget{class_q_qt_serial_port_a6d10f970cb2e2e902d5817ba111d3921}\label{class_q_qt_serial_port_a6d10f970cb2e2e902d5817ba111d3921}} 
void {\bfseries install\+Protocol} (\mbox{\hyperlink{class_q_qt_protocol}{Q\+Qt\+Protocol}} $\ast$stack)
\item 
\mbox{\Hypertarget{class_q_qt_serial_port_ae424ddaa721a42350cf0285249bfd640}\label{class_q_qt_serial_port_ae424ddaa721a42350cf0285249bfd640}} 
void {\bfseries uninstall\+Protocol} (\mbox{\hyperlink{class_q_qt_protocol}{Q\+Qt\+Protocol}} $\ast$stack)
\item 
\mbox{\Hypertarget{class_q_qt_serial_port_a878ae6c67b17260934fa861e5d0cc75e}\label{class_q_qt_serial_port_a878ae6c67b17260934fa861e5d0cc75e}} 
\mbox{\hyperlink{class_q_qt_protocol}{Q\+Qt\+Protocol}} $\ast$ {\bfseries installed\+Protocol} ()
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \mbox{\hyperlink{class_q_qt_serial_port_a7d3e84dbed9a0b874a0a8af849b0a9de}{translator}} (const Q\+Byte\+Array \&bytes)
\begin{DoxyCompactList}\small\item\em translator 用于拆分和分发数据报 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_q_qt_serial_port_a7d3e84dbed9a0b874a0a8af849b0a9de}\label{class_q_qt_serial_port_a7d3e84dbed9a0b874a0a8af849b0a9de}} 
\index{Q\+Qt\+Serial\+Port@{Q\+Qt\+Serial\+Port}!translator@{translator}}
\index{translator@{translator}!Q\+Qt\+Serial\+Port@{Q\+Qt\+Serial\+Port}}
\subsubsection{\texorpdfstring{translator()}{translator()}}
{\footnotesize\ttfamily void Q\+Qt\+Serial\+Port\+::translator (\begin{DoxyParamCaption}\item[{const Q\+Byte\+Array \&}]{bytes }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}



translator 用于拆分和分发数据报 


\begin{DoxyParams}{Parameters}
{\em bytes} & \\
\hline
\end{DoxyParams}
这个地方的实现，还是有一些复杂， 但是只有流式传输才需要， 而且，每种通讯接口的流式传输都是一样的， 过去，写在protocol里是为了增添传输工具客户端类型方便 现在，这块比较稳定，所以挪动回来。

只能安装一个协议。 如果安装多个，这个地方的static，需要给协议们分配独立的buffer。 一个客户端，和服务器通信，一条流，可以由多个协议进行解析吗？

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/network/qqtserialport.\+h\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/network/qqtserialport.\+cpp\end{DoxyCompactItemize}
